package com.onlinesys.protocol.dataprocessor;

import java.sql.SQLException;
import java.util.List;

import com.onlinesys.protocol.exceptions.StorageLackException;
import com.onlinesys.protocol.protocolbeans.DataNode;

public interface DataManager {

    public void saveNode1(DataNode node) throws SQLException;

    public void saveNode2(DataNode node) throws SQLException, StorageLackException;
    
    public DataNode getLastPorcessingDataForDisplay(int displayCount) throws SQLException;
    
    public DataNode getLastReporcessingDataForDisplay(int displayCount) throws SQLException;

    public void saveNode3(DataNode node, boolean isEnableRepairNode) throws SQLException;

    public void saveNode4(DataNode node) throws SQLException;

    public void saveNode5(DataNode node) throws SQLException, StorageLackException;

    public void saveNode6(DataNode node) throws SQLException, StorageLackException;
    
    public List<DataNode> getDataFromNode3() throws SQLException;
    
    public List<DataNode> getDataFromNode4(DataNode node) throws SQLException;

    public String getNodeIP(String sourceNodeIP, byte sourceNodeType, byte targetNodeType) throws SQLException;

    public boolean checkDrawingNum(String drawingNum) throws SQLException;
    
    public int getProductOnlineQueueSize(DataNode node) throws SQLException;
    
    public String getLineName(String nodeIP, boolean isProductLine) throws SQLException;
    
    public void archiveMouthRecord(String date) throws SQLException;
    
    public int getReprocessOnlineCount(String drawingNum) throws SQLException;
}
